package com.ellwood.IPGuard.infrastruction.domain.vo.system.user;

import com.ellwood.IPGuard.common.core.utils.EllDateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Map;

/**
 * @ProjectName: IPGuard-boot
 * @PackageName: com.ellwood.IPGuard.infrastruction.domain.vo.system.user
 * @ClassName: UmsSysUserQueryVO
 * @Description: // 系统用户查询vo
 * @Author: Ellwood
 * @CreateDate: 2024/9/27 - 下午1:49
 * @Version: V1.0.0
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Schema(description = "系统用户查询vo")
public class UmsSysUserVO implements TransPojo, Serializable {
        
        @Serial
        private static final long serialVersionUID = 1L;
        
        /**
         * 用户ID
         */
        @Schema(description = "用户ID")
        private Long id;
        
        /**
         * 用户账号
         */
        @Schema(description = "用户账号")
        private String username;
        
        @Schema(description = "用户密码")
        @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
        private String password;
        
        /**
         * 用户昵称
         */
        @Schema(description = "用户昵称")
        private String nickname;
        
        /**
         * 用户邮箱
         */
        @Schema(description = "用户邮箱")
        private String email;
        
        /**
         * 手机号码
         */
        @Schema(description = "手机号码")
        private String mobile;
        
        /**
         * 用户性别（0男 1女 2未知）
         */
        @Schema(description = "用户性别（0男 1女 2未知）")
        private Integer sex;
        
        /**
         * 头像地址
         */
        @Schema(description = "头像地址")
        private String avatar;
        
        /**
         * 备注
         */
        @Schema(description = "备注")
        private String remark;
        
        /**
         * 创建时间
         */
        
        @Schema(description = "创建时间")
        @JsonFormat(pattern = EllDateUtils.DATE_PATTERN)
        private LocalDateTime createTime;
        
        @JsonIgnore
        private Map<String, Object> transMap;
        
}
